package com.chzc.fm.duotin.bean.home;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/6/29.
 */
public class PlayListBean {


    /**
     * id : 87084
     * describe : 2016欧洲杯集锦
     * title : 决战2016欧洲杯
     * categories : ["娱乐综艺","脱口秀"]
     * image_url : http://c3.duotin.com/i1/DT/IgSX4RK831oZ4J1-NxaA93eHBojnsBTGKDCFMmyyXJo.jpg
     * content_num : 2
     * subscribe_num : 4
     * play_num : 1742
     * last_updated_time : 2016-06-28
     * updated_status : 1
     * tag_image_url :
     * voice_url :
     * is_subscribe : 0
     * new_content_num : 0
     */

    private AlbumBean album;
    /**
     * page : {"page_size":100,"page":1,"total_num":2,"total_page":1,"sort_type":0}
     * data_list : [{"id":1453541,"title":"全景欧洲杯，老司机现身","duration":"01:22:02","album_id":87084,"display_order":"99999","play_num":1983,"audio_32_size":"39410660","audio_64_size":39410660,"audio_32_url":"http://c203.duotin.com/M04/43/69/wKgB5Vdw1XeAIPgfAllb4-i0QXo054.mp3","audio_64_url":"http://c203.duotin.com/M04/43/69/wKgB5Vdw1XeAIPgfAllb4-i0QXo054.mp3","image_url":"http://c3.duotin.com/i1/DT/nEZ-5fYQE0TyYfbUQ4rID7w5-8GZXfZRyiCnO5xOt5Q.jpg","is_new":0,"is_collect":0},{"id":1453540,"title":"足球流氓暴力史 160616","duration":"00:04:57","album_id":87084,"display_order":"100000","play_num":102948,"audio_32_size":"2376916","audio_64_size":2376916,"audio_32_url":"http://c203.duotin.com/M01/40/D6/wKgB5Vdi7gmATJ5kACRE1O8Kfc8350.mp3","audio_64_url":"http://c203.duotin.com/M01/40/D6/wKgB5Vdi7gmATJ5kACRE1O8Kfc8350.mp3","is_new":0,"is_collect":0}]
     */

    private ContentListBean content_list;

    public static PlayListBean objectFromData(String str) {

        return new Gson().fromJson(str, PlayListBean.class);
    }

    public static List<PlayListBean> arrayPlayListBeanFromData(String str) {

        Type listType = new TypeToken<ArrayList<PlayListBean>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public AlbumBean getAlbum() {
        return album;
    }

    public void setAlbum(AlbumBean album) {
        this.album = album;
    }

    public ContentListBean getContent_list() {
        return content_list;
    }

    public void setContent_list(ContentListBean content_list) {
        this.content_list = content_list;
    }

    public static class AlbumBean {
        private String id;
        private String describe;
        private String title;
        private String image_url;
        private String content_num;
        private String subscribe_num;
        private String play_num;
        private String last_updated_time;
        private int updated_status;
        private String tag_image_url;
        private String voice_url;
        private int is_subscribe;
        private int new_content_num;
        private List<String> categories;

        public static AlbumBean objectFromData(String str) {

            return new Gson().fromJson(str, AlbumBean.class);
        }

        public static List<AlbumBean> arrayAlbumBeanFromData(String str) {

            Type listType = new TypeToken<ArrayList<AlbumBean>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getDescribe() {
            return describe;
        }

        public void setDescribe(String describe) {
            this.describe = describe;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getImage_url() {
            return image_url;
        }

        public void setImage_url(String image_url) {
            this.image_url = image_url;
        }

        public String getContent_num() {
            return content_num;
        }

        public void setContent_num(String content_num) {
            this.content_num = content_num;
        }

        public String getSubscribe_num() {
            return subscribe_num;
        }

        public void setSubscribe_num(String subscribe_num) {
            this.subscribe_num = subscribe_num;
        }

        public String getPlay_num() {
            return play_num;
        }

        public void setPlay_num(String play_num) {
            this.play_num = play_num;
        }

        public String getLast_updated_time() {
            return last_updated_time;
        }

        public void setLast_updated_time(String last_updated_time) {
            this.last_updated_time = last_updated_time;
        }

        public int getUpdated_status() {
            return updated_status;
        }

        public void setUpdated_status(int updated_status) {
            this.updated_status = updated_status;
        }

        public String getTag_image_url() {
            return tag_image_url;
        }

        public void setTag_image_url(String tag_image_url) {
            this.tag_image_url = tag_image_url;
        }

        public String getVoice_url() {
            return voice_url;
        }

        public void setVoice_url(String voice_url) {
            this.voice_url = voice_url;
        }

        public int getIs_subscribe() {
            return is_subscribe;
        }

        public void setIs_subscribe(int is_subscribe) {
            this.is_subscribe = is_subscribe;
        }

        public int getNew_content_num() {
            return new_content_num;
        }

        public void setNew_content_num(int new_content_num) {
            this.new_content_num = new_content_num;
        }

        public List<String> getCategories() {
            return categories;
        }

        public void setCategories(List<String> categories) {
            this.categories = categories;
        }
    }

    public static class ContentListBean {
        /**
         * page_size : 100
         * page : 1
         * total_num : 2
         * total_page : 1
         * sort_type : 0
         */

        private PageBean page;
        /**
         * id : 1453541
         * title : 全景欧洲杯，老司机现身
         * duration : 01:22:02
         * album_id : 87084
         * display_order : 99999
         * play_num : 1983
         * audio_32_size : 39410660
         * audio_64_size : 39410660
         * audio_32_url : http://c203.duotin.com/M04/43/69/wKgB5Vdw1XeAIPgfAllb4-i0QXo054.mp3
         * audio_64_url : http://c203.duotin.com/M04/43/69/wKgB5Vdw1XeAIPgfAllb4-i0QXo054.mp3
         * image_url : http://c3.duotin.com/i1/DT/nEZ-5fYQE0TyYfbUQ4rID7w5-8GZXfZRyiCnO5xOt5Q.jpg
         * is_new : 0
         * is_collect : 0
         */

        private List<DataListBean> data_list;

        public static ContentListBean objectFromData(String str) {

            return new Gson().fromJson(str, ContentListBean.class);
        }

        public static List<ContentListBean> arrayContentListBeanFromData(String str) {

            Type listType = new TypeToken<ArrayList<ContentListBean>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public PageBean getPage() {
            return page;
        }

        public void setPage(PageBean page) {
            this.page = page;
        }

        public List<DataListBean> getData_list() {
            return data_list;
        }

        public void setData_list(List<DataListBean> data_list) {
            this.data_list = data_list;
        }

        public static class PageBean {
            private int page_size;
            private int page;
            private int total_num;
            private int total_page;
            private int sort_type;

            public static PageBean objectFromData(String str) {

                return new Gson().fromJson(str, PageBean.class);
            }

            public static List<PageBean> arrayPageBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<PageBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public int getPage_size() {
                return page_size;
            }

            public void setPage_size(int page_size) {
                this.page_size = page_size;
            }

            public int getPage() {
                return page;
            }

            public void setPage(int page) {
                this.page = page;
            }

            public int getTotal_num() {
                return total_num;
            }

            public void setTotal_num(int total_num) {
                this.total_num = total_num;
            }

            public int getTotal_page() {
                return total_page;
            }

            public void setTotal_page(int total_page) {
                this.total_page = total_page;
            }

            public int getSort_type() {
                return sort_type;
            }

            public void setSort_type(int sort_type) {
                this.sort_type = sort_type;
            }
        }

        public static class DataListBean {
            private int id;
            private String title;
            private String duration;
            private int album_id;
            private String display_order;
            private int play_num;
            private String audio_32_size;
            private int audio_64_size;
            private String audio_32_url;
            private String audio_64_url;
            private String image_url;
            private int is_new;
            private int is_collect;

            public static DataListBean objectFromData(String str) {

                return new Gson().fromJson(str, DataListBean.class);
            }

            public static List<DataListBean> arrayDataListBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<DataListBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getDuration() {
                return duration;
            }

            public void setDuration(String duration) {
                this.duration = duration;
            }

            public int getAlbum_id() {
                return album_id;
            }

            public void setAlbum_id(int album_id) {
                this.album_id = album_id;
            }

            public String getDisplay_order() {
                return display_order;
            }

            public void setDisplay_order(String display_order) {
                this.display_order = display_order;
            }

            public int getPlay_num() {
                return play_num;
            }

            public void setPlay_num(int play_num) {
                this.play_num = play_num;
            }

            public String getAudio_32_size() {
                return audio_32_size;
            }

            public void setAudio_32_size(String audio_32_size) {
                this.audio_32_size = audio_32_size;
            }

            public int getAudio_64_size() {
                return audio_64_size;
            }

            public void setAudio_64_size(int audio_64_size) {
                this.audio_64_size = audio_64_size;
            }

            public String getAudio_32_url() {
                return audio_32_url;
            }

            public void setAudio_32_url(String audio_32_url) {
                this.audio_32_url = audio_32_url;
            }

            public String getAudio_64_url() {
                return audio_64_url;
            }

            public void setAudio_64_url(String audio_64_url) {
                this.audio_64_url = audio_64_url;
            }

            public String getImage_url() {
                return image_url;
            }

            public void setImage_url(String image_url) {
                this.image_url = image_url;
            }

            public int getIs_new() {
                return is_new;
            }

            public void setIs_new(int is_new) {
                this.is_new = is_new;
            }

            public int getIs_collect() {
                return is_collect;
            }

            public void setIs_collect(int is_collect) {
                this.is_collect = is_collect;
            }
        }
    }
}
